home *** CD-ROM | disk | FTP | other *** search
/ Multimedia Jumpstart / Multimedia Microsoft Jumpstart Version 1.1a (Microsoft).BIN / develpmt / source / midikeyb / makefile next >
Encoding:
Makefile  |  1992-09-12  |  2.1 KB  |  106 lines

  1. #
  2. #   Makefile for MIDIKEYB ('MIDI Keyboard') custom control.
  3. #
  4. #     (C) Copyright Microsoft Corp. 1991.  All rights reserved.
  5. #
  6.  
  7.  
  8. # comment the following macro out if this is a RELEASE make.
  9. #DEBUG   =   TRUE
  10.  
  11. # set these macros to control where stuff is placed/redirected
  12. OUTPUT  =   con
  13. WINAPPS =   c:\mwindows
  14. WINLIB  =   c:\mdk\lib
  15. WININC  =   c:\mdk\include
  16. !IFNDEF WINDIR
  17. WINDIR  =   c:\mwindows
  18. !ENDIF
  19.  
  20.  
  21. !IFDEF DEBUG
  22.  
  23. AS  =   masm -Mx -Zi
  24. CC  =   cl -c -DDEBUG -AM -G2w -Owd -W3 -Zipe
  25. RC  =   rc -v -DDEBUG
  26. LN  =   link /NOD/NOE/A:16/CO
  27.  
  28. !ELSE
  29.  
  30. AS  =   masm -Mx
  31. CC  =   cl -c -DRELEASE -AM -G2sw -Ows -W3 -Zpe
  32. RC  =   rc -v -DRELEASE
  33. LN  =   link /NOE/NOD/A:16
  34.  
  35. !ENDIF
  36.  
  37.  
  38. .asm.obj:
  39.             $(AS) $*;
  40.  
  41. .c.obj  :
  42.             @echo Compiling $*.c... >$(OUTPUT)
  43.             $(CC) -NT $* $*.c >$*.err
  44.             @type $*.err >$(OUTPUT)
  45.  
  46.  
  47. MISC    =   makefile
  48.  
  49. INCS    =   midikeyb.h  
  50. SRCS    =   midikeyb.c  
  51. OBJS    =   midikeyb.obj
  52.  
  53.  
  54. all :   midikeyb.lib testkeyb.exe
  55.  
  56.  
  57. testkeyb.exe:   testkeyb.obj testkeyb.res testkeyb.def midikeyb.lib
  58.                 $(LN) @testkeyb.lnk
  59.                 $(RC) testkeyb.res
  60.  
  61. testkeyb.exe:   testkeyb.res
  62.                 $(RC) testkeyb.res
  63.  
  64. testkeyb.obj:   testkeyb.c testkeyb.h midikeyb.h
  65.  
  66. testkeyb.res:   testkeyb.rc testkeyb.h testkeyb.ico
  67.                 $(RC) -r testkeyb.rc
  68.  
  69.  
  70. midikeyb.lib:   $(OBJS)
  71.                 del midikeyb.lib
  72.                 lib midikeyb.lib +$(OBJS) ;
  73. #                copy midikeyb.lib $(WINLIB)
  74. #                copy midikeyb.h $(WININC)
  75.  
  76. midikeyb.obj:   midikeyb.c midikeyb.h
  77.  
  78.  
  79. # MISC. STUFF
  80.  
  81. zip     :   clean
  82.             pkzip -a midikeyb.zip *.*
  83.  
  84. clean   :
  85.             del *.lib
  86.             del *.exe
  87.             del *.err
  88.             del *.res
  89.             del *.obj
  90.             del *.map
  91.             del *.sym
  92.             del *.zip
  93.  
  94. ship    :   all
  95.             del *.err
  96.             del *.res
  97.             del *.obj
  98.             del *.map
  99.             del *.sym
  100.             del *.zip
  101.             touch *.*
  102.             pkzip -a midikeyb.zip *.*
  103.  
  104.  
  105.  
  106.